const { connection } = require('../../../model/database')
module.exports = (req, res) => {

    var sql = `select * from comments limit ${req.body.page * 10},10`
    // 发送
    connection.query(sql, (error, reslut) => {
        if (error) {
            res.status(400).send('错误')
            return
        }
        // console.log(reslut);
        res.send(reslut)
    })
}